package com.pyz.lockdemo;

import org.openjdk.jol.info.ClassLayout;

public class ObjectLayout {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(ClassLayout.parseInstance(person).toPrintable());
        Person person2 = new Person();
        System.out.println(ClassLayout.parseInstance(person2).toPrintable());
    }
}

class Person {
    int age = 23;
    boolean flag = false;
}
